/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable import/no-unresolved */
/* eslint-disable import/order */
/* eslint-disable import/extensions */
import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router/index'
import ElementPlus from 'element-plus'
import { DraggablePlugin } from '@braks/revue-draggable'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon.vue'
import i18n from '@/lang/index'

// import { stateSymbol, createState } from './store'
// import * as earcut from 'earcut'
// ;(window as any).earcut = earcut
import 'earcut'

createApp(App)
  .use(router)
  .use(DraggablePlugin)
  .use(ElementPlus, { size: 'medium', zIndex: 3000 })
  .use(i18n)
  // .provide(stateSymbol, createState())
  .component('SvgIcon', SvgIcon)
  .mount('#app')
